package xuan.mall.system.application.service;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import xuan.mall.system.domain.service.AuthDomainService;
import xuan.mall.system.interfaces.dto.response.Response;
import xuan.mall.system.interfaces.dto.response.TokenDTO;

/**
 * @author: rongxuanzhou
 * @create: 2025/6/1
 * @Description:
 */
@Service
@RequiredArgsConstructor
public class AuthAppService {

    private final AuthDomainService authDomainService;

    public Response<TokenDTO> login(String username, String password) {
        return authDomainService.login(username, password);
    }
}
